package kelong;

public class kl implements Cloneable{
    private test s1=new test();

    @Override
    protected Object clone() throws CloneNotSupportedException {
        test d4=new test();
        d4.s= (double) d4.clone();
        return d4;
    }

    public static void main(String[] args) throws CloneNotSupportedException {
        kl d1=new kl();
        kl d2= (kl) d1.clone();
        System.out.println(d1.s1.s);
//        System.out.println(d2.s1.s);
    }
}
